package com.daxue.configtest.exception;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;

/**
 * @author daxue0929
 * @date 2023/3/23
 */

@AllArgsConstructor(staticName = "of", access = AccessLevel.PACKAGE)
public final class ServiceRuntimeException
    extends BaseRuntimeException
    implements UnwrappableException<ServiceException> {

    private ServiceException e;

    @Override
    public ServiceException unwrap() {
        return e;
    }
}
